# -*- coding: utf-8 -*-
# @File  : conftest.py
# @Author: zbh
# @Date  : 2025/3/31_20:12

import pytest

canshu = "conftest.py"

name = "conftest.py"

@pytest.fixture(scope="session")
def global_shared_data():
    print("设置全局共享数据")
    data = {"name": "fixture"}
    yield data
    print("清理全局共享数据")

# Hook函数，pytest_runtest_setup：在每个测试运行前执行一些操作
def pytest_runtest_setup(item):
    print(f"调用hook函数：测试用例{item.name}开始执行")

@pytest.fixture(scope="session")
def config_value():
    return canshu







